﻿
<div class="knowledge_structure_list" ng-controller="kdStructure">
    <div class="knowledge_structure_list_top">
        <div style="float: inherit;">
                  筛选条件：</div>
        <div class="knowledge_structure_list_toptimefw" style="float: inherit;">
            <a>操作时间范围</a>
            <input id="startDate" class="" placeholder="开始日期" onclick="wdatepicker({highLineWeekDay:true})"
                ng-focus="GetDate()" onfocus="var endTime=$dp.$('startDate');wdatepicker({onpicked:function(){endDate.focus();},maxDate:'#F{$dp.$D(\'endDate\')}'})">
            <span>-</span>
            <input class="" id="endDate" placeholder="截止日期" value="" onclick="wdatepicker()"
                ng-focus="GetDate()" onfocus="wdatepicker({minDate:'#F{$dp.$D(\'startDate\')}'})">
        </div>
        <div  style="float: inherit;">
        <input type="text" placeholder="请输入知识架构名称" set-focus class="knowledge_structure_list_top_sousuo" ng-model="params.searchName" ng-keyup="findlistbyEnter($event)" style="height: 32px;border: 0;" />
        </div>
        <div ng-click="getList()" style="height: 32px;float: inherit;">
            <svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sousuo"></use></svg>
            确认筛选
        </div>
        <div class="knowledge_structure_list_top_right">
            <div class="knowledge_structure_list_top_add " btncon="btnAdd" btn-obj="btnlist">
            <!--ng-click="addkonwledge()"-->
                <svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-tianjia"></use></svg>
                管理节点</div>
            <div class="knowledge_structure_list_top_add " btncon="btnModel" btn-obj="btnlist" ng-if="params.powerLV!=3">
            <!--ng-click="addModel()"-->
                <svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-tianjia"></use></svg>
                系统分类</div>
            <div class="knowledge_structure_list_top_select"  btncon="btnDel" btn-obj="btnlist">
            <!--ng-click="delinfo()"-->
                <svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-shanchu"></use></svg>
                删除</div>
        </div>
    </div>
    <div class="knowledge_structure_list_main" ui-tree>            
        <ol class="angular-ui-tree-node " ui-tree-nodes ng-model="knowledgeList">
            <!--表头-->
            <li class="knowledge_structure_list_itemtitle" style=" border-left:3px solid transparent">
                <div style="" class="knowledge_structure_list_cz">
                    <div class="liebiaocheck-box" style="top:0px;" ng-class="{selected:selectAll == queryAll  && queryAll != 0}" ng-click="checkAll();">
                                <!--添加selected为选中样式-->
                                <span class="iconfont">&#xe67a;</span>
                     </div>
                 </div>
                <div style="display:none"><button ng-click="checkAll()">xu</button>{{selectAll == queryAll  }}{{selectAll}} {{queryAll}}</div>
                <div class="knowledge_structure_list_zshgname">
                    知识结构名称</div>
                <div class="knowledge_structure_list_kjs">
                    课件数</div>
                <div class="knowledge_structure_list_sjs">
                    试卷数</div>
                <div class="knowledge_structure_list_tms">
                    题目数</div>
                <div class="knowledge_structure_list_fzr">
                    负责人</div>
            </li>
            <li class="angular-ui-tree-node"  ng-if="knowledgeList.length <=0 && !knowledgeLoading">
                <center style="margin:100px auto;">
                    <img src="/images/null/null.png" />
                    <div style="font-size:30px;color:#a3a3a3;"  ng-bind="'Null' | T"></div>
                </center>
            </li>
            <!-- 表头部-->
            <!--表内容  data-nodrag  关闭拖动-->            
            <li class="angular-ui-tree-node" data-nodrag ui-tree-node  ng-repeat="knode in knowledgeList" ng-include="'/system/views/train/knowledgestructure/knowledgestructuresubnode.html'"></li>
        </ol>
    </div>
<!--    <knowledgestructureaddedit on-Save="knowledgesItem(kndgeItem)" two-stage="knowledgesItem" is-hide="knowledgesHide" is-save-btn="knowledgesBtnLoad"></knowledgestructureaddedit>-->
<!--<selectormodal ng-if="ApiData.ApiOpen" apidata="ApiData"></selectormodal>-->
<!--------------------------------------------------------添加、修改弹框----------------------------------------------------------------------->
 <!--      isSaveBtn:"=", // 是否正在请求中
             isHide: "=",    //是否显示出来这个内容 
             knowledgeStructure: "=", //单独的二级运营对象
             kssList:"", //父节点
             onSave: "&"      //保存对象到服务器    -->
<knowledge-structure-add-edit  is-save-btn="knowledgeLoading" is-hide="knowledgesHide" knowledge-structure="knowledgeInfo" kss-list="kList"  on-save="saveKnowledge(knowledgeInfo)" ng-show="knowledgesHide" on-callback="addhide()"></knowledge-structure-add-edit>

<!---------------------------------------------------------模板弹框弹框------------------------------------------------------------------->
<!-- modelSavebtn:"=", // 是否正在请求中
        modelIsHide: "=",    //是否显示出来这个内容 
        modelItemS: "=", //单独的二级运营对象
        modelOnSave: "&"      //保存对象到服务器   -->

<knowledge-structure-model-add-edit model-is-hide="isModelShow" model-on-save="saveModel()" ng-if="isModelShow" model-on-hide="addhide()"></knowledge-structure-model-add-edit>
<!---------------------------------------------------------删除弹框------------------------------------------------------------------->
<knowledge-delete-box del-data-list="deleteList" ng-if="deleteHide" is-hide="cancelHide()"  del-All="delinfo($scope.knowledgeItem,2)" type="3" ids="para.knowledge_Id"></knowledge-delete-box>

</div>
     


